package chen.huai.jie.spring.xmlconfig.provider.impl;

import chen.huai.jie.spring.xmlconfig.db.mybatis.entity.User;
import chen.huai.jie.spring.xmlconfig.db.mybatis.repository.UserRepository;
import chen.huai.jie.spring.xmlconfig.provider.UserProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserProviderImpl implements UserProvider {

    @Autowired
    private UserRepository userRepository;

    @Override
    public List<User> findAll() {
        StringBuffer stringBuffer = new StringBuffer();
        return userRepository.findAll();
    }
}
